<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%-- <%@ page import="gop.dto.MyPointDto, gop.dao.MyPointDao, java.util.List, java.text.DecimalFormat" %>
<% request.setCharacterEncoding("utf-8"); %>
<%
	String select = request.getParameter("search_select");
	DecimalFormat df = new DecimalFormat("###,###");
	int totalGain = 0;
	MyPointDao myPointDao = new MyPointDao();
	List<MyPointDto> list = myPointDao.selectAllMyPoint();
	
	for(int i=0; i<list.size(); i++) {
		totalGain += list.get(i).getPointValue();
	}
%> --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Primus</title>
	
    <link type="text/css" rel="stylesheet" href="/spring-GOP/css/common.css">   
    <link type="text/css" rel="stylesheet" href="/spring-GOP/css/style.css">
    <link type="text/css" rel="stylesheet" href="/spring-GOP/css/notice/style_80.css">
    <link type="text/css" rel="stylesheet" href="/spring-GOP/css/notice/style_8010.css">
    
	<script src="http://code.jquery.com/jquery-1.8.0.js"></script>
	<script type="text/javascript" src="/spring-GOP/js/common.js"></script>
	<script type="text/javascript">
		function onSearch() {
			document.forms["listForm"].submit();
		}
	</script>
</head>
<body>
	<form action="/GOP/pages/ticket/list.jsp" name="listForm">
		<div id="container">
			<div id="content">
				<div id="main-shortCut">
					<div class="sub-main-section">
						<div class="page-type3">
							<h2>
								<p>포인트 충전내역</p>
								프리머스 <span>관리자 모드</span>
							</h2>
						</div>
						<div class="listTab mainTab">
							<ul style="height: 762px;">
								<li>
									<p class="line" style="width: 990px; display: block;"></p>
									<h3 class="tab-title on">
										<a><span style="width: 328px;">포인트 충전 내역</span></a>
									</h3>
									<ul class="ul-tab main-tab tab-content" style="display: block;">
										<li class="t-head">
											<h4 class="tit-tab">포인트 충전 내역</h4>
											<div class="notice-form">
												<span style="margin-right: 200px;">총 수입액 : ${totalGain}</span>
												<label for="ddlTheaters" class="notice-label">공지사항 극장별 분류</label>
												<span class="select-box" style="background-position: 135px 50%;">
												<span class="selected-text">아이디</span>
													<select id="search_select" name="search_select" class="target">
														<option value="" selected="">아이디</option>
														<option value="charge">충전량</option>
													</select>
												</span>
												<p><a href="javascript:onSearch();" class="button h30 w97 white"><b>보기</b></a></p>
											</div>
										</li>
										<li class="table">
											<table width="100%">
												<caption class="hide">공지사항 목록</caption>
												<thead class="notice-thead">
													<tr>
														<th scope="col" class="table-head1">번호</th>
														<th scope="col" class="table-head2">ID</th>
														<th scope="col" class="table-head3">구분</th>
														<th scope="col" class="table-head3">충전량</th>
														<th scope="col" class="table-head2">날짜</th>
													</tr>
												</thead>
												<tbody>
													<c:forEach var="item" items="${list}" varStatus="idx">
														<tr>
															<td>${item.point_num}</td>
															<td>${item.member_id}</td>
															<td>${item.point_title}</td>
															<td>${item.point_value}</td>
															<td>${item.point_chargedate}</td>
														</tr>
													</c:forEach>
												</tbody>
											</table>
										</li>
										<!-- table -->
									</ul>
								</li>
								<!-- <li>
									<p class="line" style="width: 990px; display: none;"></p>
									<h3 class="tab-title">
										<a href="/GOP/pages/notice/faq/faq_list.jsp"><span style="width: 328px;">영화 구매 내역</span></a>
									</h3>
									<ul class="ul-tab main-tab tab-content" style="display: none;">
									</ul>
								</li> -->
							</ul>
						</div>
						<!--//listTab mainTab-->
					</div>
					<!--//sub-main-section-->
				</div>
				<!--//main-shortCut-->
			</div>
			<!--//content-->
		</div>
	</form>
</body>
</html>